<?php

namespace App\Models;

use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable
{
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    public $primaryKey = 'user_id';

    protected $connection = 'manager';

    protected $fillable = [
        'name', 'email', 'password',
    ];

    /**
     * The attributes excluded from the model's JSON form.
     *
     * @var array
     */
    protected $hidden = [
        'password', 'remember_token',
    ];

//    public function getAvatarAttribute($value)
//    {
//        if (!$value) {
//            return "/img/avatars/avatar3.jpg";
//        }
//        return stream_get_contents($value);
//    }
}
